package cn.ming.leo.utils;

import java.util.List;

import com.google.gson.Gson;

/**
 * @author liaozhida
 * 消息队列的消息实体
 */
public class SMSMessage{
	/**
	 * 单条短信
	 */
	public static final String SINGLE_SMS = "single";
	/**
	 * 简单群发
	 */
	public static final String SIMPLE_BATCH = "simple_batch";
	/**
	 * 复杂群发 
	 */
	public static final String COMPLICATE_BATCH = "complicate_batch";
	/**
	 * 普通发送
	 */
	public static final String SEND_NORMAL = "send_normal";
	/**
	 * 营销发送
	 */
	public static final String SEND_MARKET = "send_market";
	
	//发送类型
	private String type;
	private List<SMSBean> smsBeans;
	//群发的短信内容
	private String batchContent;
	//群发的手机号码
	private List<String> batchMobiles;
	//发送类别
	private String category;
	
	public String getType() {
		return type;
	}
	
	public void setType(String type) {
		this.type = type;
	}
	
	public List<SMSBean> getSmsBeans() {
		return smsBeans;
	}
	
	
	public String getBatchContent() {
		return batchContent;
	}

	public void setBatchContent(String batchContent) {
		this.batchContent = batchContent;
	}

	public List<String> getBatchMobiles() {
		return batchMobiles;
	}

	public void setBatchMobiles(List<String> batchMobiles) {
		this.batchMobiles = batchMobiles;
	}

	public void setSmsBeans(List<SMSBean> smsBeans) {
		this.smsBeans = smsBeans;
	}
	
	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	@Override
	public String toString() {
		Gson gson = new Gson();
		return gson.toJson(this);
	}
	
	
	
}
